package com.ecloud.gardensterminal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecloud.gardensterminal.domain.GardensSwitch;

/**
 * @author Squbi
 */
public interface GardensSwitchMapper extends BaseMapper<GardensSwitch> {

    /**
     * 查询最新数据
     *
     * @param deviceId id
     * @return GardensSwitch
     * @author Squbi
     * @date 2021/9/18 15:37
     */
    GardensSwitch selectNewly(int deviceId);

    /**
     * 删除大于1天的数据
     *
     * @author Squbi
     * @date 2021/9/18 15:25
     */
    void delete1days();
}
